﻿using Abp.Application.Services;
using Abp.Application.Services.Dto;
using Abp.Authorization;
using Akso.Authorization;
using Akso.Courses.Dto;
using Akso.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Akso.Courses
{
    
    public interface ICourseAppService: IApplicationService
    {
        /// <summary>
        /// 获取查询结果
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<ListResultDto<CourseListDto>> GetObjects(GetCoursesInput input);
        Task<CourseEntity> CreateOrUpdateObject(CreateOrUpdateCourseInput input);
        Task DeleteObject(EntityDto<Guid> input);
        /// <summary>
        /// 在新增、编辑数据的弹出对话框中，获取对象的数据。
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<GetCourseForEditOutput> GetObjectForEdit(NullableIdDto<Guid> input);
    }
}
